﻿namespace Netfraction.Common.Logging
{
	/// <summary>
	/// The unique event id to appear in the event log
	/// </summary>
	public enum LogEventId : int
	{
		// 1xx are general hub events e.g. start/stop/restart
		// 2xx are protocol events
		// 3xx are security events
		// 4xx are file-handling events
		// 5xx are user events e.g. connected, disconnected, registered, kicked, banned
		// 6xx are data storage events
		Generic = 100,
		HubStarted = 101,
		HubStopped = 102,
		ConnectionListenerStarted = 110,
		ConnectionListenerError = 111,
		TLSCertificateCreated = 320,
		TLSCertificateCreationError = 321,
		TLSCertificateNotFound = 322,
		TLSCertificatePrivateKeyCreated = 325,
		LoadingHubSettings = 401,
		CreatingHubSettings = 402,
		SavingHubSettings = 403,
		SettingsFileError = 404,
		LoadingRoles = 411,
		CreatingRoles = 412,
		SavingRoles = 413,
		RolesFileError = 414,
		LoadingIdentities = 421,
		CreatingIdentities = 422,
		SavingIdentities = 423,
		IdentitiesFileError = 424,
		HideIdentity = 520,
		ShowIdentity = 521,
		KickIdentity = 540,
		DropIdentity = 541,
		SqlStoreException = 610,
		XmlStoreException = 620,
		TextStoreException = 630
	}
}
